/*!
    \copyright  Copyright (c) 2024 Qualcomm Technologies International, Ltd.
    \version    %version
    \file
    \ingroup    adk_test_common
    \brief      Creates tables of marshal type descriptors for spps test loopback application
*/
#ifdef INCLUDE_SPPS_LOOPBACK_TEST

#include "spps_test_marshal_desc.h"

static const marshal_member_descriptor_t spp_test_data[] =
{
    MAKE_MARSHAL_MEMBER_ARRAY(spp_test_marshal_data_t, uint16, spp_connection_id, spp_max_instances),
};

static const marshal_type_descriptor_t mtd_spp_test_marshal_data_t =
        MAKE_MARSHAL_TYPE_DEFINITION(spp_test_marshal_data_t, spp_test_data);

/* Use xmacro to expand type table as array of type descriptors */
#define EXPAND_AS_TYPE_DEFINITION(type) (const marshal_type_descriptor_t *) &mtd_##type,
const marshal_type_descriptor_t * const  mtd_spp_test[SPP_TEST_MARSHAL_OBJ_TYPE_COUNT] =
{
    COMMON_MARSHAL_TYPES_TABLE(EXPAND_AS_TYPE_DEFINITION)
    COMMON_DYN_MARSHAL_TYPES_TABLE(EXPAND_AS_TYPE_DEFINITION)
    SPP_TEST_MARSHAL_TYPES_TABLE(EXPAND_AS_TYPE_DEFINITION)
};
#undef EXPAND_AS_TYPE_DEFINITION
#endif /* INCLUDE_SPPS_LOOPBACK_TEST */
